package com.easy.mapper;

import com.easy.bean.Raw_material;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RawMaterialDao {
    int add(@Param("param") Raw_material rawMaterial);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Raw_material rawMaterial);
    Raw_material one(@Param("id") Integer id);
    List<Raw_material> all(@Param("name") String name);
    int pageCount(@Param("param") Raw_material rawMaterial);
    List<Raw_material> page(@Param("page") Page page, @Param("param") Raw_material rawMaterial);
}
